# 3.3 组织列表
# 3.3.1 使用方法sort()对列表进行永久性排序
cars = ['bmw', 'audi', 'toyota', 'subaru']
cars.sort()  # 永久性排序
print(cars)

cars = ['bmw', 'audi', 'toyota', 'subaru']
print("Here is the original list:")  # 临时排序
print(cars)
print("\nHere is the sorted list:")
print(sorted(cars))
print("\nHere is the original list again:")
print(cars)

cars = ['bmw', 'audi', 'toyota', 'subaru']
len(cars)  # 列表长度
print(len(cars)) # 4